'use strict';

angular.module('snPaas_om')
	.controller('MonitorCtrl',['$scope','baseUrl','monitorStore','clusterStore',function($scope,baseUrl,monitorStore,clusterStore){
		var vm = $scope;
		vm.baseUrl = baseUrl.static;
		vm.clusterId = vm.$stateParams.id;
		vm.isInit = true; //遗留字段
		clusterStore.detail(vm.clusterId).then(function(data){
			vm.clusterName = data.deploymentName;
		});

		

		monitorStore.clusterMonit(vm.clusterId).then(function(data){
			vm.monitList = data;
		});
	
		
		
	
	}]);